package com.kingmed.kmss.auth.service;


import com.kingmed.kmss.common.dto.auth.CustomMessageReq;

/**
 * 泛微OA对接
 * @author rain
 * @date 2023/5/15 11:21
 */
public interface WeaverService {

    String restLogin(String userName, String password);

    String getTicket(String tgt);

    String restValidate(String ticket, String service);

    @Deprecated
    String restValidate(String ticket);

    /**
     * 发送消息
     *
     * @param customMessageReq
     * @return
     */
    String sendCustomMessageSingle(CustomMessageReq customMessageReq);


    /**
     * 修改消息业务状态
     *
     * @param customMessageReq
     * @return
     */
    String alterCustomMessageSingle(CustomMessageReq customMessageReq);

    /**
     * 删除消息
     *
     * @param customMessageReq
     * @return
     */
    String deleteCustomMessageSingle(CustomMessageReq customMessageReq);

    /**
     * 发送消息
     *
     * @param receiverCode
     * @param title
     * @param context
     * @return
     */
    String sendMsg(String receiverCode, String title, String context);


    /**
     * 批量发送消息
     *
     * @param receiverCode
     * @param title
     * @param customMessageReq
     * @return
     */
    String sendMsg(String receiverCode, String title, CustomMessageReq customMessageReq);

}
